from pyecharts import options as opts
from pyecharts.charts import Map
from pyecharts.faker import Faker
import os

# 基础数据
quxian = ['观山湖区', '云岩区', '南明区', '花溪区', '乌当区', '白云区', '修文县', '息烽县', '开阳县', '清镇市']

values3 = [3, 5, 7, 8, 2, 4, 7, 8, 2, 4]

c = (
    Map()
    .add("贵阳", [list(z) for z in zip(quxian, values3)], "贵阳")
    .set_global_opts(
        title_opts=opts.TitleOpts(title="贵阳地图"), visualmap_opts=opts.VisualMapOpts()
    )
    .render()
)
# 打开html
os.system("render.html")